<?php
if(!defined('PATH')) exit();
$this->archez->showMsg('Remember that name need to begin with capital letter and shortest word need to have 2 letters. Max lenght of name is 25 characters. Also you can\'t use name as \'gamemaster\', \'administrator\', etc. You can use A-Z and spaces.', 'hint');
?>
<br/>
<form action="<?=PATH?>/account/character/createverify/" method="post">
<table border="0" cellpadding="8" cellspacing="1" width="100%">
<tr><td colspan="2" class="head"><b>New character</b></td></tr>
<tr><td width="20%">Name:</td><td><input type="text" name="character_name" /></td></tr>

<tr><td>Sex:</td><td>
<select name="character_sex">
<option value="1">male</option>
<option value="0">female</option>
</select>
</td></tr>

<tr><td>Town:</td><td>
<select name="character_town">

<?php
$i = 0;

foreach($this->config['server']['towns'] as $row => $key)
{
?>
	<option value="<?=$i?>"><?=$key?></option>

<?php
	$i++;
}
?>

</select>
</td></tr>

<tr><td>Profession:</td><td>
<select name="character_profession">


<?php
$a = 1;

foreach($this->config['server']['professions']['allowed'] as $row => $key)
{
?>
	<option value="<?=$row?>"><?=$key?></option>
<?php
	$i++;
}
?>

</select>
</td></tr>

<tr><td width="20%"><input type="submit" value="Create" /></td><td><input type="reset" value="Reset" /></td></tr>

</table>
</form>